# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年09月02日
"""
import numpy as np

A = np.arange(10)
print(A)
# 筛选数组
# filt = A > 5
# print(A[filt])

# 把大于5的数字变成1, 小于等于5的数字变成0
# A[A <= 5] = 0
# A[A > 5] = 1
# print(A)

# 进行自增量的操作, 给大于5的加上520
A[A>5] += 520
print(A)

